From c02b5fe7d2c90a48355fb595197c12ea7ad55964 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Thu, 14 Sep 2006 15:20:36 +0000 Subject: [PATCH] added babl_total_usecs --- ChangeLog | 6 ++++++ babl/babl-internal.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index a4ec272..e39774a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-09-14 Øyvind Kolås + + * babl/babl-internal.c: (babl_process): added global babl_total_usecs, + not exported through headers, but useful to be able to substract the + babl conversion time from other algorithms using babl. + 2006-09-12 Øyvind Kolås * autogen.sh: decreased required automake version to 1.7.9. (It diff --git a/babl/babl-internal.c b/babl/babl-internal.c index 46bd660..9b66085 100644 --- a/babl/babl-internal.c +++ b/babl/babl-internal.c @@ -75,6 +75,8 @@ babl_die (void) exit (-1); } +long babl_total_usecs = 0; + long babl_process (Babl *babl, void *source, @@ -104,6 +106,7 @@ babl_process (Babl *babl, ticks -= babl_ticks(); ticks *= -1L; + babl_total_usecs += ticks; babl->fish.usecs += ticks; babl->fish.processings++; babl->fish.pixels += ret; -- 2.30.2